<%= form_for @after_service,
     :url => create_after_service_finished_order_url,
     :remote => true,
     :method => :post do |f|
 %>
<h6><b>新增-售后完成</b></h6>
<%= f.hidden_field :order_item_id %>
<dl>
  <dt>
    售后记录
  </dt>
  <dd>
    <%= f.select :id, @after_services.collect {|after_service| [ "#{after_service.installer_full_name}于『#{after_service.after_serviced_on}』上门服务【#{after_service.order_item.furniture_code}-#{after_service.order_item.furniture_name}】", after_service.id ] }, {}, :id => "after_service_#{@after_service.id}_id" %>
  </dd>
</dl>
<dl>
  <dt>
    售后成本
  </dt>
  <dd>
    <%= f.text_field :after_serviced_cost %>
  </dd>
</dl>
<dl>
  <dt>
    收款
  </dt>
  <dd>
    <%= f.text_field :gathered_balance, :value => '0.00' %>
  </dd>
</dl>
<dl>
  <dt>
    备注
  </dt>
  <dd>
    <%= f.text_area :installed_remark, :rows => 5%>
  </dd>
</dl>
<dl>
  <dd class="form_tool">
    <%= f.submit '保存' %>
    <%= link_to '返回', new_feed_order_url(@after_service.order_item),:remote => true, :method => :get, :id => "new_after_service_finished_btn#{@after_service.order_item.id}", :class => 'button' %>
  </dd>
</dl>
<div class="clear"></div>
<%end%>
